<?php
$GLOBALS['Md'] = "FTK9D4D0";
$GLOBALS['Pd'] = "G";
require_once($_SERVER['DOCUMENT_ROOT'] . "/defaultconf.mex");
require_once($GLOBALS['PAD'] . "Aplications/ReportModels/report.vars.php");

$_POST['RelRate'] = 'Of_Rate2';
form_pr('PRT_Results', '', '', 'post');
mn_field('hidden', 'ED', 'RelRate', $_POST['RelRate'], '', '', '', '');
?>
<div style="margin:1px;padding:4px;background-color:#93AEC6">Quadro de Clientes</div>
<div style="margin:1px;padding:6px;background-color:#D6DADC">De:
    <?php
    mn_field('date', 'ED', 'Tini', '', 'PRT_Results', 8, '', '');
    echo ' a ';
    mn_field('date', 'ED', 'Tend', '', 'PRT_Results', 8, '', '');
    mn_field('button', 'ED', 'RPT_View', 'Por periodo', '', '', '', '" onclick="
		document.PRT_Results.action=\'_response/call.php?get=Financeiro/chart_clients\';
		subform(\'PRT_Results\',\'RPT_FinResults\');');
    $FieldCountries = "Brasil;Paises de Leste#305,301,300;307";
    mn_field('hselect', 'ED', 'Countries', '', $FieldCountries, 'Todos', 'false', '');
    $FieldOrigens = "Lojas#1";
    mn_field('hselect', 'ED', 'Origens', '', $FieldOrigens, '', '', '');
    mn_field('button', 'ED', 'printer', 'Imprimir', '', '', '', '" onclick="printdiv(\'RPT_FinResults\');');
    ?></div>
<?php
    echo '<div id="RPT_FinResults">';
    include($GLOBALS['ROO'] . "Modules/Financeiro/chart_clients.php");
    echo '</div>
</form>';
?>